#ifndef SIMUBOARD_TEMPERATUREWIDGET_HPP
#define SIMUBOARD_TEMPERATUREWIDGET_HPP

#include <FL/Fl_Widget.H>

class TemperatureWidget : public Fl_Widget
{
public:
    TemperatureWidget(int X, int Y, int W, int H, const char* label = nullptr);
    void set_temperature(int t); // 摄氏度
    int temperature() const { return temp_c_; }

protected:
    void draw() override;

private:
    int temp_c_ = 25;
};

#endif // SIMUBOARD_TEMPERATUREWIDGET_HPP

